package xyz.cerberu.cet.user.service;

import xyz.cerberu.cet.user.dao.CommentDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author β世界
 * Created on 10:08
 * @Description
 */
@Service
public class CommentManagerServiceImpl {
    @Autowired
    private CommentDao commentDao;

    @Transactional(rollbackFor = Exception.class)
    public int deleteCommentByAnime(String ani_id) {
        int line = commentDao.deleteCommentByAnime(ani_id);
        return line;
    }

    public int deleteCommentByUser(String ani_id, String uid) {
        return 0;
    }
}
